using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BUS;
using Entities;
using Utility;
public partial class Admin_LoaiSPEdit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            load_data();
        }
    }
    private void load_data()
    {
        try
        {
            int id = int.Parse(Request.QueryString["id"].ToString());
            tbLoaiSP loaisp = new tbLoaiSP();
            if (loaisp != null)
            {
                txt_MaLoai .Text = loaisp .IdLoaiSP .ToString();
                txt_TenLoai .Text = loaisp .TenLoai .ToString();
                
            }
        }
        catch
        {
            Response.Redirect("~/Admin/Default.aspx");
        }
    }
    protected void btn_Update_Click(object sender, EventArgs e)
    {

    }
}
